﻿@model ShoppingWebPage.ViewModels.CartViewModel
@{
    ViewBag.Title = "Edit";
}
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    @Html.HiddenFor(model => model.cart.cartName)
    <fieldset>
        <div class="editor-label">
            @Html.LabelFor(model => model.cart.Items)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.cart.Items)
        </div>
        <p>
            <input type="submit" value="Update" />
        </p>
    </fieldset>
}
<p>
    Total items: @Model.totalItems</p>
<p>
    Cart Balance: @String.Format("{0:c}", Model.totalBalance)</p>
<p>
    @Html.ActionLink("Back to Inventory", "Index", "Items")</p>
